<template>
  <view class="member">
    <view v-if="!isMember">
      <image :src="$mConfig.imageUrl + '/image/cphy-banner1.png'" class="bg" mode="widthFix"></image>
      <view class="bottom-btn flex" >
        <view class="left">会员费:<text>120.00</text> 元/年</view>
        <view class="right" @click="joinFun">加入会员</view>
      </view>
      </view>
      <view class="m-box" v-else>
        <image :src="$mConfig.imageUrl + '/image/cphy-banner.png'" class="bg" mode="widthFix"></image>
        <view class="status">
          <view>恭喜您已激活会员 <text>{{memberTime}}</text></view>
          <image :src="$mConfig.imageUrl + '/image/huiyuan.png'" class="hy" mode="widthFix"></image>
        </view>
      </view>
    
  </view>
</template>
<script>
export default {
  data() {
    return {
      isMember:false
    }
  },
  methods: {
    joinFun() {
      uni.navigateTo({
        url: '/pages/user/members/payDetail',
      })
    },
  },
}
</script>
<style scoped lang="scss">
.member {
  background: #121352;
  position: relative;
  height: 100vh;
  .bg {
    position: absolute;
    width: 100%;
  }
  .bottom-btn {
    position: absolute;
    line-height: 98rpx;
    width: 100%;
    left: 0;
    bottom: 0;
    z-index: 8;
    .left {
      background: #dfedff;
      color: #222;
      box-sizing: border-box;
      width: calc(100% - 260rpx);
      padding-left: 30rpx;
      text {
        color: #ff0101;
        font-size: 36rpx;
        margin: 0 8rpx;
      }
    }
    .right {
      background: #3a92ff;
      color: #fff;
      font-size: 30rpx;
      width: 260rpx;
      text-align: center;
    }
  }
  .top-cont {
    position: relative;
    padding: 70rpx 60rpx 0 30rpx;
    color: #fff0c2;
    .hy {
      width: 50rpx;
      height: 50rpx;
      margin-right: 8rpx;
    }
    .justify-between {
      font-weight: bold;
      .left-word {
        font-size: 28rpx;
      }
      .year {
        font-size: 32rpx;
      }
    }
    .hyyear{
      padding-left: 60rpx;
      padding-top: 20rpx;
      view{
font-size: 24rpx;
line-height: 40rpx;
      }
      
    }
  }
}
</style>
